<!DOCTYPE html>
<html>
<head>
<script>
function load()
{
alert("页面已加载！");
}
</script>
</head>

<body onload="load()">
<h1>Hello World!</h1>
</body>

</html>
